import { Routes, Route } from 'react-router-dom';
import Login from './pages/Login';
import PlayerList from './pages/PlayerList';
import AddPlayer from './pages/AddPlayer';
import AddMatch from './pages/AddMatch';
import MatchList from './pages/MatchList';
import EventForm from './pages/EventForm';
import './App.css';

function App() {
  return (
    <Routes>
      <Route path="/login" element={<Login />} />
      <Route path="/playerList" element={<PlayerList />} />
      <Route path="/addPlayer" element={<AddPlayer />} />
      <Route path="/addMatch" element={<AddMatch />} />
      <Route path="/matchList" element={<MatchList />} />
      <Route path="/eventForm" element={<EventForm />} />
      <Route path="*" element={<Login />} />
    </Routes>
  );
}

export default App;
